file = "hello.html"
with open(file,"w",encoding="utf-8") as wf:
    while True:
        op = input("")
        if op.upper() == "QUIT":
            break
        wf.write(op+"\n")